<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="blank">
<meta name="format-detection" content="telephone=no, email=no">
<meta name="msapplication-tap-highlight" content="no">
<link rel="stylesheet" type="text/css" href="/views/default/skin/css/style.css" />
<title><{config_item('website_title')}></title>
</head>
<body>
<div class="wrap">	
<form class="form form-horizontal" name="add" id="add" method="post" action="<{site_url('/api/member/balance/withdraw_act')}>">
	<div class="bordercells">
		<div class="addListbox">
			<div class="cashbox">
				<div class="cashNum">
					提现金额
				</div>
				<div class="cashinputbox">
					<label>¥</label>
					<input type="tel" class="cashinput" name="amount" placeholder="最多可以提现￥<{$member_user_data.balance}>" datatype="price" nullmsg="请输入提现金额" errormsg="金额格式错误"/>
				</div>
			</div>		
		</div>
	</div>
	<div class="bordercells">
		<div class="addListbox">
			<!--start  -->
			<div class="add_new  flexbox">
				<div class="addListL" style="text-align:right;">
					提现方式：
				</div>
				<div class="addListR flexbox">
					<select name="type" onchange="select_type(this.value)" class="addinputText">
					<option value="1">银行卡</option>
					<option value="2">支付宝</option>
					<!--<option value="3">微信</option>-->
				</select>
				</div>
			</div>
			<!-- end -->
			<!--start  -->
			<div class="add_new  flexbox">
				<div class="addListL" style="text-align:right;">
					姓名：
				</div>
				<div class="addListR flexbox">
					<input type="text" class="addinputText" name="name" datatype="*" nullmsg="姓名不能为空">
				</div>
			</div>
			<!-- end -->
			<!--start  -->
			<div id="bank_name" class="add_new  flexbox">
				<div class="addListL" style="text-align:right;">
					银行开户行：
				</div>
				<div class="addListR flexbox">
					<input type="text" class="addinputText" name="bank_name">
				</div>
			</div>
			<!-- end -->
			<!--start  -->
			<div class="add_new  flexbox">
				<div class="addListL" style="text-align:right;">
					账号：
				</div>
				<div class="addListR flexbox">
					<input type="text" class="addinputText" name="pay_number" datatype="*" nullmsg="账号不能为空">
				</div>
			</div>
			<!-- end -->
			<!--start  -->
			<div class="add_new  flexbox">
				<div class="addListL" style="text-align:right;">
					备注：
				</div>
				<div class="addListR flexbox">
					<input type="text" class="addinputText" name="note">
				</div>
			</div>
			<!-- end -->
		</div>
	</div>
	<div class="infosub">
		<input type="submit" value="确认转出"  class="infosubbtn">
	</div>
</form>
</div>
<script type="text/javascript" src="/public/js/jquery.js"></script>
<script type="text/javascript" src="/views/default/skin/js/public.js"></script>
<script type="text/javascript" src="/public/js/validform.js"></script>
<script type="text/javascript" src="/public/js/layer/layer.js"></script>
<script type="text/javascript" src="/public/js/artTemplate.js"></script>
<{include file="default/footer.html"}>
<script type="text/javascript" >
	//验证表单
	$(function(){
		$.Tipmsg.r=null;
		$("#add").Validform({
			tiptype:function(msg){
				layer.msg(msg);
			},
			tipSweep:true,
			ajaxPost:true,
			callback:function(data){
				if(data.status=="y"){
					layer.msg('申请成功');
					setTimeout(function(){
						window.history.back();
					},2000)
				} else {
					layer.msg(data.info);
				}
			}
		});
	})

	//选择银行显示姓名和开户行
	function select_type(type){
		if(type!=1){
			$('#bank_name').hide();
		} else {
			$('#bank_name').show();
		}
	}
</script>
</body>
</html>